import request from "@/utils/request";

// 员工列表查询
export const queryEmpsList = (name,gender,begin,end,page,pageSize) => request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);

//添加员工信息
export const addEmp = (emp) =>request.post('/emps',emp);

//根据id查询员工信息
export const queryEmpById = (id) => request.get(`/emps/${id}`);

//修改员工信息
export const updateEmp = (emp) => request.put('/emps',emp);

//删除员工信息
// export const deleteEmpsByIds = (ids) => request.delete(`/emps?id=${ids}`);
export const deleteEmpsByIds = (ids) => request.delete('/emps',{
    params:{ids}
});

